//
//  SimSegmentScrollView.h
//  Pods
//
//  Created by LiuXubin on 16/5/4.
//
//

#import <UIKit/UIKit.h>

@interface SimScrollSegmentView : UIScrollView

@property (nonatomic) CGFloat itemWidth;
@property (nonatomic) CGFloat strokeWidth;
@property (nonatomic) NSInteger itemCount;
@property (nonatomic, strong) UIFont *font;
@property (nonatomic, copy) void(^setupItemBlock)(UIButton *btnItem, NSInteger index);
@property (nonatomic, copy) void(^itemSelectedChangedBlock)(UIButton *btnItem, NSInteger index, BOOL selected);

@property (nonatomic) CGFloat initIndex;
@property (nonatomic, readonly) NSInteger currentIndex;
@property (nonatomic, copy) void(^didSelectIndexBlock)(NSInteger index);

@property (nonatomic, strong) UIColor *belowStrokeColor;
@property (nonatomic, copy) void(^setupBelowStrokeBlock)(UIView *belowStrokeView);

- (void)updateCurrentIndex:(NSInteger)index animated:(BOOL)animated;
- (void)updateCurrentIndex:(NSInteger)index animated:(BOOL)animated notify:(BOOL)notify;

- (void)reloadData;

@end
